package pub.cleangao.memm.exception;


public class RpcException extends RuntimeException {

    public RpcException(RpcErrorMessage rpcErrorMessage, String detail) {
        super(rpcErrorMessage.getMessage() + ":" + detail);
    }

    public RpcException(String message) {
        super(message);
    }

    public RpcException(Exception e) {
        super(e);
    }

    public RpcException(RpcErrorMessage rpcErrorMessage) {
        super(rpcErrorMessage.getMessage());
    }
}
